#生成动静态库


#设置cmake的最低版本
cmake_minimum_required(VERSION 3.15)

#设置项目名称
project(creatLib)

#指定头文件的目录
set(MY_INCLUDE /home/lang/myfile/code/work_da-guan/4_testCmake)
include_directories(${MY_INCLUDE}/include)


#设置动静态库生成的目录
set(OUT_LIB /home/lang/myfile/code/work_da-guan/4_testCmake/outLib)
set(LIBRARY_OUTPUT_PATH ${OUT_LIB})

#生成动态库
add_library(add_so SHARED add.cpp)
add_library(myPrint_so SHARED myPrint.cpp)

#生成静态库
add_library(add_a STATIC add.cpp)
add_library(myPrint_a STATIC myPrint.cpp)


